﻿using QMERP.SeedWork;

namespace QMERP.Domain.Entities
{
    /// <summary>
    /// 合约镜种
    /// </summary>
    public class Contract_Lens : Entity
    {
        public Contract_Lens()
        {
            RetailOrderDetails = new HashSet<RetailOrderDetail>();
            BulkOrderDetails = new HashSet<BulkOrderDetail>();
        }
        /// <summary>
        /// 最小SPH
        /// </summary>
        public int MinSPH { get; set; }
        /// <summary>
        /// 最大SPH
        /// </summary>
        public int MaxSPH { get; set; }
        /// <summary>
        /// 最小CYL
        /// </summary>
        public int MinCYL { get; set; }
        /// <summary>
        /// 最大CYL
        /// </summary>
        public int MaxCYL { get; set; }
        /// <summary>
        /// 最小ADD
        /// </summary>
        public int MinADD { get; set; }
        /// <summary>
        /// 最大ADD
        /// </summary>
        public int MaxADD { get; set; }
        /// <summary>
        /// Size
        /// </summary>
        public string? Size { get; set; }
        /// <summary>
        /// 片记单价
        /// </summary>
        public decimal PricePcs { get; set; }
        /// <summary>
        /// 副记单价
        /// </summary>
        public decimal PricePairs { get; set; }
        /// <summary>
        /// 交收单显示(英文)
        /// </summary>
        public string? InvoiceStrENG { get; set; }
        /// <summary>
        /// 交收单显示(简体)
        /// </summary>
        public string? InvoiceStrCHS { get; set; }
        /// <summary>
        /// 交收单显示(繁体)
        /// </summary>
        public string? InvoiceStrCHT { get; set; }

        /// <summary>
        /// 合约Id
        /// </summary>
        public long ContractId { get; set; }
        /// <summary>
        /// 镜种Id
        /// </summary>
        public long LensId { get; set; }
        /// <summary>
        /// 合约
        /// </summary>
        public virtual Contract? Contract { get; set; }
        /// <summary>
        /// 镜种
        /// </summary>
        public virtual Lens? Lens { get; set; }
        /// <summary>
        /// 散镜订单详情列表
        /// </summary>
        public virtual ICollection<RetailOrderDetail> RetailOrderDetails { get; set; }
        /// <summary>
        /// 批量订单详情列表
        /// </summary>
        public virtual ICollection<BulkOrderDetail> BulkOrderDetails { get; set; }
    }
}
